<template>
  <div id="comDIv">
    <div class="comMeifBox">
      <div class="cmbTitle">
        <h1>上门美容热销榜榜</h1>
        <p>248人买过<span class="iconfont icon-xiangyoujiantou"></span></p>
      </div>
      <div class="cmbCon">
        <dl>
          <dt><img src="../../../public/wx/m2.jpeg" alt="" /></dt>
          <dd>{{ dText | sub }}</dd>
        </dl>
        <dl>
          <dt><img src="../../../public/wx/m2.jpeg" alt="" /></dt>
          <dd>{{ dText | sub }}</dd>
        </dl>
        <dl>
          <dt><img src="../../../public/wx/m2.jpeg" alt="" /></dt>
          <dd>{{ dText | sub }}</dd>
        </dl>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  el: "#comDIv",
  data() {
    return { 
        dText: "[特价必选]肩颈调理按摩" 
    };
  },
  filters: {
    sub(val) {
      return val.substr(0, 8) + "...";
    },
  },
};
</script>

<style scoped>
.comMeifBox {
  margin: 0 0.16rem 0.4rem;
  padding: 0.2rem 0.05rem;
  line-height: 0.5rem;
  background: #fff;
  border-radius: 0.22rem;
  display: inline-block;
}
.iconfont {
  vertical-align: middle;
}
h1 {
  font-weight: normal;
}
.comMeifBox p {
  color: #8f8f8f;
}
.comMeifBox p span {
  margin-left: 0.02rem;
}
.cmbTitle {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.cmbCon {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0 0.3rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-evenly;
}
dt img {
  width: 80%;
  border-radius: 0.1rem;
}
</style>